import axios from '@/tools/index.js'
export function getBanner () {
  return axios.get('/Get/banner')
}
export function getKind () {
  return axios.get('/Get/pro/kind')
}
export function getPage (ops) {
  return axios.get('/Get/pro/page', {
    params: ops
  })
}
export function getDetail (ops) {
  return axios.get('/Get/pro/detail', {
    params: ops
  })
}
export function send (ops) {
  return axios.get('/Get/user/send', {
    params: ops
  })
}
export function register (ops) {
  return axios.post('/Post/user/register', ops)
}
export function login (ops) {
  return axios.post('/Post/user/login', ops)
}
export function getUser (ops) {
  return axios.post('/Post/user/msg', ops)
}
export function addCart (ops) {
  return axios.post('/Post/cart/add', ops)
}
export function getCart (ops) {
  return axios.post('/Post/cart', ops)
}
export function delCart (ops) {
  return axios.post('/Post/cart/del', ops)
}
export function setFlag (ops) {
  return axios.post('/Post/cart/flag', ops)
}
export function setNum (ops) {
  return axios.post('/Post/cart/num', ops)
}
export function setAllFlag (ops) {
  return axios.post('/Post/cart/allFlag', ops)
}
export function addOrder (ops) {
  return axios.post('/Post/order/add', ops)
}
export function getOrder (ops) {
  return axios.post('/Post/order', ops)
}
export function payOrder (ops) {
  return axios.post('/Post/order/pay', ops)
}
export function addHistorySearch (ops) {
  return axios.post('/Post/search/add', ops)
}
export function delHistorySearch (ops) {
  return axios.post('/Post/search/del', ops)
}
export function getHistorySearch (ops) {
  return axios.get('/Get/search', {
    params: ops
  })
}
export function getSearch (ops) {
  return axios.get('/Get/pro', {
    params: ops
  })
}
export function getBrand (ops) {
  return axios.get('/Get/pro/brand', {
    params: ops
  })
}
export function searchBrand (ops) {
  return axios.get('/Get/search/brand', {
    params: ops
  })
}
export function confirmOrder (ops) {
  return axios.post('/Post/order/confirm', ops)
}
export function howOrder (ops) {
  return axios.post('/Post/order/idea', ops)
}
export function setAvatar (ops) {
  return axios.post('/Post/user/setAvatar', ops)
}
export function setUser (ops) {
  return axios.post('/Post/user/set', ops)
}
